using System;
using System.Collections.Generic;

namespace MEA.AE_Data
{
	public struct DatLogCfg
	{
		private uint recordInterval;

		private List<byte[]> channelSignals;

		public uint RecordInterval
		{
			get
			{
				return recordInterval;
			}
			set
			{
				recordInterval = value;
			}
		}

		public List<byte[]> ChannelSignals
		{
			get
			{
				return channelSignals;
			}
			set
			{
				channelSignals = value;
			}
		}

		public DatLogCfg(uint recInterval, List<byte[]> channelSignals)
		{
			bool flag = true;
			recordInterval = recInterval;
			foreach (byte[] channelSignal in channelSignals)
			{
				if (channelSignal.GetLength(0) != 2)
				{
					flag = false;
					break;
				}
			}
			if (channelSignals.Count != 16 || !flag)
			{
				throw new Exception("RecManDatLogCfg: invalid number of channes in datlog-config");
			}
			this.channelSignals = channelSignals;
		}
	}
}
